package h_eekwan.module;

public class P_Professor extends Person {
	
	private int sal;
	private String rank;
	private String speciality;
	public P_Professor(String name, String age, String addr, int sal,
			String rank, String speciality) {
		super(name, age, addr);
		this.sal = sal;
		this.rank = rank;
		this.speciality = speciality;
	}
	public int getSal() {
		return sal;
	}
	public void setSal(int sal) {
		this.sal = sal;
	}
	public String getRank() {
		return rank;
	}
	public void setRank(String rank) {
		this.rank = rank;
	}
	public String getSpeciality() {
		return speciality;
	}
	public void setSpeciality(String speciality) {
		this.speciality = speciality;
	}
	@Override
	public String toString() {
		return "P_Professor [sal=" + sal + ", rank=" + rank + ", speciality="
				+ speciality + ", getName()=" + getName() + ", getAge()="
				+ getAge() + ", getAddr()=" + getAddr() + ", getNo()="
				+ getNo() + ", getRegdate()=" + getRegdate() + "]";
	}

	
	
	
}
